package com.sanmu.shop.demo.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class TestController {

	@RequestMapping("/")
	String home() {
		return "Hello World  uere dsds!";
	}

	@RequestMapping("/now")
	String hehe() {
		return "现在时间：" + (new Date()).toLocaleString();
	}
}
